/**
 * Model for product.
 */
Ext.define('appmod.model.user.User', {
    extend: 'Ext.data.Model',
	idProperty: 'id',
    fields: [
		'id',
        'name',
        'code',
		'mobilephone',
		'email',
		'officephone',
		'qq',
		'remark',
		/*,
		'selectedRoleIds',
		{name: 'selectedRoles' , convert: function(value, record) {
			var selectedRoleIds  = record.get('selectedRoleIds');
	        var splits = selectedRoleIds.split(",");
			var roleIds = [];
			for (var i in splits) {
				roleIds.push(splits[i]);
			}
            return roleIds;
         }},
         */
        {name:'createdDate' , type:Ext.data.Types.DATE , dateFormat:'Y-m-d'},
        {name:'disabled' , type:Ext.data.Types.BOOLEAN}
    ]
    
});

